package com.itheima.home_work.users;

public class Student extends User {
    private int score;

    public Student() {
        super();
        this.role = 1;
    }

    public Student(String name, String password) {
        super(name, password);
        this.role = 1;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public void loginSuccess() {
        System.out.println("欢迎" + this.getName() + "同学进入系统.");
    }
}
